/*
 * Particle.cpp
 *
 *  Created on: Jan 25, 2012
 *      Author: The Almighty Eric
 */

#include "Particle.h"

Particle::Particle(int ix, int iy, float idx, float idy, ASprite s, float iduration)
{
	x = ix;
	y = iy;
	dx = idy;
	dx = idx;
	sprite = s;
	duration = iduration;
}

void Particle::update(Uint32 ticks)
{
	duration -= ticks/1000.f;
}
